package com.zeng.mapper;

import com.zeng.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.Collection;
import java.util.Date;

/**
 * @author zeng
 * @data 2021/08/14 13:25
 */
@Mapper
@Repository
public interface EmployeeMapper {
    //增加一名员工
    public void addEmp(int id,String name, String email, Date birth, int sex, int department);

    //获取所有员工信息
    public Collection<Employee> getEmpInfo();

    //通过id查询员工
    public Employee getEmpById(int id);

    //更新员工信息
    public void updateEmp(Employee employee);

    //通过id删除员工
    public void delEmpById(int id);
}
